package com.freedom.study.service;

import java.io.IOException;
import java.net.UnknownHostException;

import com.freedom.study.comresp.ReturnResponse;
import com.freedom.study.model.EsReq;

public interface IEsService {
/**
 * @param article
 * @param author
 * @return 获得一条数据
 * @throws UnknownHostException
 * @throws IOException
 */
	ReturnResponse getEsSimpleData(String article, String author) throws UnknownHostException, IOException;

	/**
	 * @param req
	 * @return 新加一条数据
	 */
	ReturnResponse addEsSimpleData(EsReq req);
/**
 * @param article
 * @param author
 * @return 删除
 */
	ReturnResponse delEsSimpleData(String article, String author);
	
}
